package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 省份信息对象 woka_province
 *
 * @author Simon
 * @date 2021-12-31
 */
public class WokaProvince extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 省份代码
     */
    @Excel(name = "省份代码")
    private String code;

    /**
     * 省份名
     */
    @Excel(name = "省份名")
    private String name;

    /**
     * 城市信息信息
     */
    private List<WokaCity> wokaCityList;

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public List<WokaCity> getWokaCityList() {
        return wokaCityList;
    }

    public void setWokaCityList(List<WokaCity> wokaCityList) {
        this.wokaCityList = wokaCityList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("code", getCode())
                .append("name", getName())
                .append("wokaCityList", getWokaCityList())
                .toString();
    }
}
